//
//  OrganationSeekCell.m
//  ShangHaiTuJI
//
//  Created by xiaoxiangtuji on 2017/8/9.
//  Copyright © 2017年 xiaoxiangtuji. All rights reserved.
//

#import "OrganationSeekCell.h"

@implementation OrganationSeekCell

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        UIImageView *imgeView = [[UIImageView alloc] init];
        imgeView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:imgeView];
        [imgeView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentView);
            make.left.and.right.equalTo(self.contentView);
            make.height.mas_equalTo(scaleTopAndBottom(70));
        }];
        UILabel *nameLabel = [[UILabel alloc] init];
        nameLabel.text = @"美好学院";
        nameLabel.textAlignment = NSTextAlignmentCenter;
        [self.contentView addSubview:nameLabel];
        [nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(imgeView.mas_bottom).offset(scaleTopAndBottom(10));
            make.left.and.right.equalTo(self.contentView);
            make.bottom.equalTo(self.contentView);
        }];
    }
    return self;
}

@end
